package com.s63.appinfo.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName dev_user
 */
public class DevUser implements Serializable {
    /**
     * 主键id
     */
    private Long id;

    /**
     * 开发者帐号
     */
    private String devCode;

    /**
     * 开发者名称
     */
    private String devName;

    /**
     * 开发者密码
     */
    private String devPassword;

    /**
     * 开发者电子邮箱
     */
    private String devEmail;

    /**
     * 开发者简介
     */
    private String devInfo;

    /**
     * 创建者（来源于backend_user用户表的用户id）
     */
    private Long createdBy;

    /**
     * 创建时间
     */
    private Date creationDate;

    /**
     * 更新者（来源于backend_user用户表的用户id）
     */
    private Long modifyBy;

    /**
     * 最新更新时间
     */
    private Date modifyDate;

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 开发者帐号
     */
    public String getDevCode() {
        return devCode;
    }

    /**
     * 开发者帐号
     */
    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    /**
     * 开发者名称
     */
    public String getDevName() {
        return devName;
    }

    /**
     * 开发者名称
     */
    public void setDevName(String devName) {
        this.devName = devName;
    }

    /**
     * 开发者密码
     */
    public String getDevPassword() {
        return devPassword;
    }

    /**
     * 开发者密码
     */
    public void setDevPassword(String devPassword) {
        this.devPassword = devPassword;
    }

    /**
     * 开发者电子邮箱
     */
    public String getDevEmail() {
        return devEmail;
    }

    /**
     * 开发者电子邮箱
     */
    public void setDevEmail(String devEmail) {
        this.devEmail = devEmail;
    }

    /**
     * 开发者简介
     */
    public String getDevInfo() {
        return devInfo;
    }

    /**
     * 开发者简介
     */
    public void setDevInfo(String devInfo) {
        this.devInfo = devInfo;
    }

    /**
     * 创建者（来源于backend_user用户表的用户id）
     */
    public Long getCreatedBy() {
        return createdBy;
    }

    /**
     * 创建者（来源于backend_user用户表的用户id）
     */
    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * 创建时间
     */
    public Date getCreationDate() {
        return creationDate;
    }

    /**
     * 创建时间
     */
    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    /**
     * 更新者（来源于backend_user用户表的用户id）
     */
    public Long getModifyBy() {
        return modifyBy;
    }

    /**
     * 更新者（来源于backend_user用户表的用户id）
     */
    public void setModifyBy(Long modifyBy) {
        this.modifyBy = modifyBy;
    }

    /**
     * 最新更新时间
     */
    public Date getModifyDate() {
        return modifyDate;
    }

    /**
     * 最新更新时间
     */
    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DevUser other = (DevUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDevCode() == null ? other.getDevCode() == null : this.getDevCode().equals(other.getDevCode()))
            && (this.getDevName() == null ? other.getDevName() == null : this.getDevName().equals(other.getDevName()))
            && (this.getDevPassword() == null ? other.getDevPassword() == null : this.getDevPassword().equals(other.getDevPassword()))
            && (this.getDevEmail() == null ? other.getDevEmail() == null : this.getDevEmail().equals(other.getDevEmail()))
            && (this.getDevInfo() == null ? other.getDevInfo() == null : this.getDevInfo().equals(other.getDevInfo()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
            && (this.getCreationDate() == null ? other.getCreationDate() == null : this.getCreationDate().equals(other.getCreationDate()))
            && (this.getModifyBy() == null ? other.getModifyBy() == null : this.getModifyBy().equals(other.getModifyBy()))
            && (this.getModifyDate() == null ? other.getModifyDate() == null : this.getModifyDate().equals(other.getModifyDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDevCode() == null) ? 0 : getDevCode().hashCode());
        result = prime * result + ((getDevName() == null) ? 0 : getDevName().hashCode());
        result = prime * result + ((getDevPassword() == null) ? 0 : getDevPassword().hashCode());
        result = prime * result + ((getDevEmail() == null) ? 0 : getDevEmail().hashCode());
        result = prime * result + ((getDevInfo() == null) ? 0 : getDevInfo().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
        result = prime * result + ((getModifyBy() == null) ? 0 : getModifyBy().hashCode());
        result = prime * result + ((getModifyDate() == null) ? 0 : getModifyDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", devCode=").append(devCode);
        sb.append(", devName=").append(devName);
        sb.append(", devPassword=").append(devPassword);
        sb.append(", devEmail=").append(devEmail);
        sb.append(", devInfo=").append(devInfo);
        sb.append(", createdBy=").append(createdBy);
        sb.append(", creationDate=").append(creationDate);
        sb.append(", modifyBy=").append(modifyBy);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}